﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="CRM.Web.MaintenanceReminderConfigManage.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <uc:ucHead ID="ucHead1" runat="server" />
</head>
<body>
    <form id="form1" runat="server" defaultbutton="btnSearch">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table border="0" cellpadding="0" cellspacing="0" id="tTitle">
        <tr>
            <td class="left">
                <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
            </td>
            <td class="middle">
                <div class="pagetitle">
                    <div>
                        <asp:Label ID="lblTitle" runat="server">车辆保养提醒配置列表</asp:Label></div>
                </div>
            </td>
            <td class="right">
                <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
            </td>
        </tr>
    </table>
    <div id="divMain">
        <div style="width: 100%">
            <div class="listdiv">
                <table border="0" cellpadding="0" cellspacing="0" class="search" align="center">
                    <tr>
                        <td class="title">
                            <div class="nowrap">
                                机型:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtMODELS" runat="server" CssClass="txt" MaxLength="64" Rows="3"
                                TextMode="SingleLine"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                事业部名称:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtBUSINESSDIVISIONNAME" runat="server" CssClass="txt" MaxLength="128"
                                Rows="3" TextMode="SingleLine"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                创建时间:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtCREATETIMEBegin" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>-<asp:TextBox
                                ID="txtCREATETIMEEnd" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>
                        </td>
                        <td class="title">
                        </td>
                        <td class="content">
                        </td>
                        <td class="title" style="width: auto;">
                            &nbsp;
                        </td>
                        <td class="content">
                            <div style="width: 100px;" class="nowrap">
                                <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                                    OnClick="btnSearch_Click" /></div>
                        </td>
                    </tr>
                </table>
                <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" AutoGenerateColumns="False"
                    OnRowCreated="gvList_RowCreated" OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting"
                    AllowPaging="True" AllowSorting="True" SortExpressionValue="REMINDERID"
                    SortDirectionValue="DESC">
                    <Columns>
                        <asp:TemplateField HeaderText="REMINDERID" SortExpression="REMINDERID">
                            <ItemTemplate>
                                <asp:HyperLink ID="hlModifyREMINDERID" runat="server" NavigateUrl='<%# Eval("REMINDERID", ModifyUrl) %>' Text='<%# Bind("REMINDERID") %>'></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="BRAND" HeaderText="品牌" SortExpression="BRAND" Visible="false" />
                        <asp:BoundField DataField="VEHICLETYPE" HeaderText="类型" SortExpression="VEHICLETYPE" Visible="false" />
                        <asp:BoundField DataField="SERIES" HeaderText="系列" SortExpression="SERIES" Visible="false" />
                        <asp:TemplateField HeaderText="机型" SortExpression="MODELS">
                            <ItemTemplate>
                                <asp:HyperLink ID="hlModifyMODELS" runat="server" NavigateUrl='<%# Eval("REMINDERID", ModifyUrl) %>' Text='<%# Bind("MODELS") %>'></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="MAINTENANCETIME1" HeaderText="保养时间1" SortExpression="MAINTENANCETIME1" />
                        <asp:BoundField DataField="MAINTENANCETIME2" HeaderText="保养时间2" SortExpression="MAINTENANCETIME2"  Visible="false" />
                        <asp:BoundField DataField="MAINTENANCETIME3" HeaderText="保养时间3" SortExpression="MAINTENANCETIME3"  Visible="false" />
                        <asp:BoundField DataField="MAINTENANCETIME4" HeaderText="保养时间4" SortExpression="MAINTENANCETIME4"  Visible="false" />
                        <asp:BoundField DataField="MAINTENANCETIME5" HeaderText="保养时间5" SortExpression="MAINTENANCETIME5"  Visible="false" />
                        <asp:BoundField DataField="MAINTENANCETIME6" HeaderText="保养时间6" SortExpression="MAINTENANCETIME6"  Visible="false" />
                        <asp:BoundField DataField="MAINTENANCETIME7" HeaderText="保养时间7" SortExpression="MAINTENANCETIME7"  Visible="false" />
                        <asp:BoundField DataField="MAINTENANCETIME8" HeaderText="保养时间8" SortExpression="MAINTENANCETIME8"  Visible="false" />
                        <asp:BoundField DataField="MAINTENANCETIME9" HeaderText="保养时间9" SortExpression="MAINTENANCETIME9"  Visible="false" />
                        <asp:BoundField DataField="MAINTENANCETIME10" HeaderText="保养时间10" SortExpression="MAINTENANCETIME10"  Visible="false" />
                        <asp:BoundField DataField="MAINTENANCETIME11" HeaderText="保养时间11" SortExpression="MAINTENANCETIME11"  Visible="false" />
                        <asp:BoundField DataField="MAINTENANCETIME12" HeaderText="保养时间12" SortExpression="MAINTENANCETIME12" Visible="false" />
                        <asp:BoundField DataField="MAINTENANCETIME13" HeaderText="保养时间13" SortExpression="MAINTENANCETIME13"  Visible="false" />
                        <asp:BoundField DataField="MAINTENANCETIME14" HeaderText="保养时间14" SortExpression="MAINTENANCETIME14"  Visible="false" />
                        <asp:BoundField DataField="MAINTENANCETIME15" HeaderText="保养时间15" SortExpression="MAINTENANCETIME15" Visible="false" />
                        <asp:BoundField DataField="REMARK" HeaderText="备注" SortExpression="REMARK"  Visible="false" />
                        <asp:BoundField DataField="CREATETIME" HeaderText="创建时间" SortExpression="CREATETIME" DataFormatString="{0:yyyy-MM-dd}" />
                        <asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号" SortExpression="CREATEPEOPLEID"  Visible="false" />
                        <asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人" SortExpression="CREATEPEOPLE" />
                        <asp:BoundField DataField="LASTMODIFYPEOPLEID" HeaderText="最后修改人编号" SortExpression="LASTMODIFYPEOPLEID"  Visible="false" />
                        <asp:BoundField DataField="LASTMODIFYPEOPLE" HeaderText="最后修改人" SortExpression="LASTMODIFYPEOPLE"  Visible="false" />
                        <asp:BoundField DataField="LASTMODIFYTIME" HeaderText="最后修改时间" SortExpression="LASTMODIFYTIME" Visible="false" />
                        <asp:BoundField DataField="BUSINESSDIVISIONID" HeaderText="事业部编号" SortExpression="BUSINESSDIVISIONID" Visible="false" />
                        <asp:BoundField DataField="BUSINESSDIVISIONNAME" HeaderText="事业部名称" SortExpression="BUSINESSDIVISIONNAME" />
                        <asp:BoundField DataField="BUSINESSDIVISIONCODE" HeaderText="事业部代码" SortExpression="BUSINESSDIVISIONCODE"  Visible="false" />
                        <asp:TemplateField HeaderText="操作" ShowHeader="False">
                            <ItemTemplate>
                                <div style="white-space: nowrap;">
                                    <asp:HyperLink ID="hlModify" runat="server" NavigateUrl='<%# Eval("REMINDERID", ModifyUrl) %>'>详细</asp:HyperLink>
                                    <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="False"
                                        OnClientClick="return confirm('您确认要删除此条记录吗？');"></asp:LinkButton>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle CssClass="row" />
                    <AlternatingRowStyle CssClass="row2" />
                    <HeaderStyle CssClass="header" />
                    <PagerStyle CssClass="pager" />
                </dp:WebGridView>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
